#ifndef MYCDATA_H
#define MYCDATA_H

#include <QObject>
#include "public_global.h"
#include "qmap.h"

class myCData : public QObject
{
    Q_OBJECT
public:
    static vector<string> s_aType;
    static vector<string> s_aBaseType;
    static QMap<string, QMetaObject> s_mapTypeToClass;
    static void RegisterClass(string strType, QMetaObject metaObject,bool bBaseType = false);
    static string GetType(QMetaObject metaObject);
public:
    Q_INVOKABLE explicit myCData(QObject *parent = 0);
protected:
    virtual ~myCData();
public:
    string     m_strField;  // 字段名称
    string     m_strName;// 数据名称
    string     m_strParentUnit;// 所属单元名称

public:
    string GetFullName();
    string GetFieldAndName();
public:
    virtual void OnUpdateParentUnit(string strParentUnit);


signals:

public slots:
};

#endif // MYCDATA_H
